<?php
class PNAgencyArray extends PNObjectArray {
  function PNAgencyArray($init=null, $where='')
  {
    $this->PNObject();

    $this->_objType       = 'spaservice_agency';
    $this->_objField      = 'id';
    $this->_objPath       = 'form';
    
    $this->_objJoin[]     = array ( 'join_table'  =>  'spaservice_agencygroup',
                            'join_field'          =>  array('id','title','titleTranslate'),
                            'object_field_name'   =>  array('agencyGroup_id','agencyGroup_title','agencyGroup_titleTranslate'),
                            'compare_field_table' =>  'agencyGroup_id',
                            'compare_field_join'  =>  'id');
                            
    $this->_init($init, $where);
  } 
 }